Commit d39547e
committed
feat: initialize debugger on first call
This enables using content debugger for scripts that don't target
wasi/http. Depending on how StarlingMonkey has been configured,
`maybe_init_debugger` can be a nop or perform actual debugger
initialization. There is currently a triple line of defense to prevent
accidental debugger initialization:
- StarlingMonkey build must be configured with ENABLE_JS_DEBUGGER=ON
- StarlingMonkey runtime arguments must include the
`--enable-script-debugging` option
- The environment variable DEBUGGER_PORT must be defined1 parent 37f47cc commit d39547e
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| 151 | + | |
150 | 152 | | |
151 | 153 | | |
152 | 154 | | |
| |||
0 commit comments