Hi,
I am running a spring boot as debug target in a docker container. And ncdbg in another container. When I run nashorn js code in my app with "debugger" keyword, it doesn't catch it. It gives following error:
NCDbg version: 0.8.3
NCDbg built with Java version: 1.8
Local Java version: 1.8.0_212
Connecting to web:7777...
Connected!
Remote VM information:
- Java Debug Interface (Reference Implementation) version 1.8
- Java Debug Wire Protocol (Reference Implementation) version 1.8
- JVM Debug Interface version 1.2
- JVM version 1.8.0_212 (OpenJDK GraalVM CE 19.0.0, mixed mode, sharing)
Enabling breaking on exceptions in script classes.
Server is listening on 0.0.0.0:7778
Open this URL in Chrome: chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=0.0.0.0:7778/dbg
Receiving WebSocket clients at /0.0.0.0:7778
Class scanning complete! Scanned 10988 classes in total.
Enabling automatic breaking at JavaScript 'debugger' statements
Host initialization is complete.
New WebSocket client from /172.18.0.1:56094 at endpoint '/dbg'.
A Developer Tools client connected!
Enabling domain Profiler
Failed to handle message (IncomingMessage(3,Debugger.enable,Map(maxScriptsCacheSize -> 10000000))): Cannot create domain method Debugger.enable because the domain and/or method are unknown
Failed to handle message (IncomingMessage(5,Debugger.setAsyncCallStackDepth,Map(maxDepth -> 32))): Cannot create domain method Debugger.setAsyncCallStackDepth because the domain and/or method are unknown
Failed to handle message (IncomingMessage(6,Runtime.getIsolateId,null)): Cannot create domain method Runtime.getIsolateId because the domain and/or method are unknown
Failed to handle message (IncomingMessage(7,Debugger.setBlackboxPatterns,Map(patterns -> List()))): Cannot create domain method Debugger.setBlackboxPatterns because the domain and/or method are unknown
Enabling domain Runtime
Got error response from domain: ErrorResponse(4,Domain Debugger is not enabled)
Failed to handle message (IncomingMessage(9,Runtime.getHeapUsage,Map())): Cannot create domain method Runtime.getHeapUsage because the domain and/or method are unknown
Hi, I am running a spring boot as debug target in a docker container. And ncdbg in another container. When I run nashorn js code in my app with "debugger" keyword, it doesn't catch it. It gives following error:
Could you please help? Thanks.