You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Build and run WinDbgX.exe node .\examples\fork\index.js
One time setup to set paths:
Open File > Settings, go to Debugging settings and set:
Source path to ...\src\win
Symbol path to ...\build\Debug
Break when pty.node is loaded:
sxe ld pty
Go (and break at pty.node):
g
List modules (verify pty.node is loaded):
lm
Reload symbols:
.reload /f
Examine a function:
x pty!PtyStartProcess
You can then open the file by clicking pty!PtyStartProcess and ...\src\win\pty.cc links. Set a breakpoint by left clicking the gutter.
Go:
g
Debugging Winpty
On Windows, you can show the winpty agent console window by adding the environment variable WINPTY_SHOW_CONSOLE=1 to the pty's environment. See https://github.com/rprichard/winpty#debugging-winpty for more information.