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
I have a project where I will create many separate executable files. One file for each practice problem I am doing. Running each of the files normally works just fine. However debugging the rngTest.zig file in particular causes the hanging / can't connect behavior.
Trying to stop the program from within CLion with the stop button in the top right greys out the stop button, but the program still runs. As shown by if I go to run the program again.
The best way to actually stop the process fully is to shut down CLion entirely and let the OS clean it up. As CLion seems unable to terminate it.
I have only let CLion try to kill the program for a few minutes, I don't know if it will eventually work but it seems frozen to me.
Below is one of my build configurations to run one of the files. The other build configs follow the same format, just with changed names.
The other files work fine, and I can debug them. It is just the "rngTest.zig" that I cannot debug. I am not sure exactly what causes it, as I don't know how to reproduce the bug yet. Though it is worth noting "rngTest.zig" is the only file to take in user input.
I'll look into both this issue and #68 once I have more free time, I'm just overloaded with IRL tasks at the moment.
For now, if you really urgently need debugging for zig, try using vscode with the c++ plugin (it provides the msvc debug adapter), that should still work.
FalsePattern
changed the title
Debug run hangs trying to start, and cannot be killed except by OS
[Windows+MSVC] Debug run hangs trying to start, and cannot be killed except by OS
Oct 22, 2024
I have a project where I will create many separate executable files. One file for each practice problem I am doing. Running each of the files normally works just fine. However debugging the rngTest.zig file in particular causes the hanging / can't connect behavior.
Trying to stop the program from within CLion with the stop button in the top right greys out the stop button, but the program still runs. As shown by if I go to run the program again.
The best way to actually stop the process fully is to shut down CLion entirely and let the OS clean it up. As CLion seems unable to terminate it.
I have only let CLion try to kill the program for a few minutes, I don't know if it will eventually work but it seems frozen to me.
Below is the build file for this project.
Below is one of my build configurations to run one of the files. The other build configs follow the same format, just with changed names.
The other files work fine, and I can debug them. It is just the "rngTest.zig" that I cannot debug. I am not sure exactly what causes it, as I don't know how to reproduce the bug yet. Though it is worth noting "rngTest.zig" is the only file to take in user input.
Below is the code for "rngTest.zig"
zig version:
0.14.0-dev.1930+4a2a0f50c
The text was updated successfully, but these errors were encountered: