daveleroy / SublimeDebugger

Graphical Debugger for Sublime Text for debuggers that support the debug adapter protocol
MIT License
369 stars 42 forks source link

Debug in conda environment #173

Closed Okroshiashvili closed 2 years ago

Okroshiashvili commented 2 years ago

This question could be asked several times. However, I did not find anything to solve my problem.

I'm using Conda sublime package to manage Python envs and my build system is also uses Conda.

I want to debug the code. Debugging starts successfully, but then getting ModuleNotFoundError meaning that during debugging sublime or the debugger uses different conda environment or even global Python installation.

Is there a solution for this problem?

P.S. I use MacOs.

daveleroy commented 2 years ago

You probably need to specify the python interpreter to use by adding `"python": "absolute path to interpreter" to your configuration

Okroshiashvili commented 2 years ago

@daveleroy Thanks a lot. Adding "python": "absolute path to interpreter" solved my problem.