Skip to content

Debug directive

zero-plusplus edited this page Feb 8, 2022 · 8 revisions

This is a experimental version. Specifications are subject to change. Also need to search for directive comments slows down performance at startup.

Debug directive is special comments that send commands to the debugger adapter. This feature is achieved using Advanced breakpoint. So knowledge of it may be required.

The directive sets a HIDDEN BREAKPOINT at that location. Note that this cannot be seen or changed from the UI.

To enable the directive, set useDebugDirective attribute to true in launch.json. Note that it will only be enabled on files that are listed in Loaded Scripts.

The following directives are supported.