When calling debugpy from command line using the vscode integrated terminal, it does not quote command line arguments. I saw some similar issues (#767) but these were focused on launching the debugger ...
When I open a file with code --wait -r that is in another directory than what is open in vscode and where vscode decides to open a new window the code --wait command returns immediately. I expected it ...