Repository navigation
Tips for debugging on Windows? #17253
Description
Activity
- addedbuildIssues and PRs related to Node.js builds or CI infrastructure.Issues and PRs related to Node.js builds or CI infrastructure.questionIssues asking questions about Node.js.Issues asking questions about Node.js.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
on Nov 22, 2017 Paging @nodejs/platform-windows.
another idea: build using ninja (
python configure --dest-cpu=x64 --ninja) and only use VS for debugging (right click project => debug => "start new instance" should not try to build)

Also maybe checkout https://x64dbg.com/
Yep, does not repro in Debug build (I'm looking into #15558). So far I traced it into V8 (paused event is triggered multiple times).
Ninja definitely looks like a more comfortable build solution but it is still horribly slow.
Reacted by Refael AckermannYeah I had the same experience while trying to dig into #15558... At least now we have a positive-control to check how link optimizations affect the binary.
BTW: did you check that all accesses to libuv are thread safe?
I dumped my findings so far on that PR. I will keep investigating.
Reacted by Refael AckermannThe rebuild time should be fixed by #17393

Is there any guide on debugging core Node.js core on Windows? I open node.vcxproj in VS 2017, do a build. Then when I add a single printf statement to a file, it takes Visual Studio forever to rebuild. I also have tried vcbuild.bat from the command prompt, it is just as slow.
It's also impossible to debug with VS as it did not find some header.
On other platforms (even on a less powerful workstation) rebuild is near instant. This issue is making it impossible to fix those failing tests on Windows...