Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99699

Debugging a Python Module in Visual Studio Code

$
0
0

I am attempting to debug code using Visual Studio Code. I have written a module 'Xchange'. I am able to run the module in the integrated terminal but I am presented with the following when attempting to run it with the debugger:

No module named Xchange

I have set the following configuration in launch.json:

{
 "name": "Python: Module",
 "type": "python",
 "request": "launch",
 "module": "Xchange",
 "console": "integratedTerminal",
 "cwd": "/Users/username/Documents/"
}

I had this working at one point, and do not believe I changed the config file. Any guidance or help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 99699

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>