JsStartDebugging Function

Starts debugging in the current context.


// Edge mode signature
STDAPI_(JsErrorCode) JsStartDebugging();

// Legacy mode signature
STDAPI_(JsErrorCode)  JsStartDebugging(
   _In_ IDebugApplication *debugApplication


  • debugApplication
    The debug application to use for debugging.

Return Value

The code JsNoError if the operation succeeded, a failure code otherwise.


The host should make sure that CoInitializeEx is called with COINIT_MULTITHREADED or COINIT_APARTMENTTHREADED at least once before using this API

The debugApplication parameter is not supported in Edge mode. For more information on using this API in Edge mode, see Targeting Edge vs. Legacy Engines in JsRT APIs.


Header: jsrt.h

See Also

Reference (JavaScript Runtime)