mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-29 23:41:29 -07:00
Debug command. (#23851)
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
@@ -803,7 +803,26 @@ function setupNetworkLogging(
|
||||
// Flush buffered logs
|
||||
flushBuffer();
|
||||
break;
|
||||
|
||||
case 'trigger-debugger': {
|
||||
import('node:inspector')
|
||||
.then((inspector) => {
|
||||
inspector.open();
|
||||
debugLogger.log(
|
||||
'Node debugger attached. Open chrome://inspect in Chrome to start debugging.',
|
||||
);
|
||||
return import('./events.js');
|
||||
})
|
||||
.then(({ appEvents, AppEvent, TransientMessageType }) => {
|
||||
appEvents.emit(AppEvent.TransientMessage, {
|
||||
message: 'Debugger attached from DevTools.',
|
||||
type: TransientMessageType.Hint,
|
||||
});
|
||||
})
|
||||
.catch((err) =>
|
||||
debugLogger.debug('Failed to trigger debugger:', err),
|
||||
);
|
||||
break;
|
||||
}
|
||||
case 'ping':
|
||||
sendMessage({ type: 'pong', timestamp: Date.now() });
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user