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

External Terminal Debugger in VS Code

$
0
0

As I can't give input in the debug console, I'm trying to run the debugger in External terminal in VS Code.

This is the part of launch.json config file for external terminal.

{
            "name": "Python: Terminal (external)",
            "type": "python",
            "request": "launch",
            "stopOnEntry": true,
            "pythonPath": "${config:python.pythonPath}",
            "program": "${file}",
            "cwd": "",
            "console": "externalTerminal",
            "env": {},
            "externalConsole": true,
            "envFile": "${workspaceRoot}/.env",
            "debugOptions": [
                "WaitOnAbnormalExit",
                "WaitOnNormalExit"
            ]
},

I added the "externalConsole": true part as they said here and I tried with or without that statement.

I get this error,

Debug adapter process has terminated unexpectedly

I tried the docs and the IntelliSense in the json file, but I can't understand and get it to work.


Viewing all articles
Browse latest Browse all 100124

Trending Articles



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