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
Error: Unable to start debugging. Launch options string provided by the project system is invalid. 's' is an unexpected token. Expecting white space. Line 3, position 66.
#651
Closed
joshrouwhorst opened this issue
Aug 10, 2016
· 5 comments
I clicked "Yes" to add the required build and debug assets
I set a breakpoint on the Console.WriteLine("Hello World!"); line of the automatically generated Program.cs file
I went to the Debug view
I made sure ".NET Core Launch (console)" was selected in the configuration dropdown
I clicked the "Start Debugging" button
Expected behavior
I would expect that the Program.cs file would run until it reaches the breakpoint, pause and allow me to step through the rest of the code.
Actual behavior
I receive this error message
Unable to start debugging. Launch options string provided by the project system is invalid. 's' is an unexpected token. Expecting white space. Line 3, position 66.
And it gives me the choice to Close or Open launch.json
Here's the contents of my launch.json file, which is the default auto-generated file:
1: (348) LaunchOptions WorkingDirectory='/Users/joshrouwhorst/Documents/Projects/Josh's/coretest/MyApp'
1: (348) LaunchOptions ExeArguments='/Users/joshrouwhorst/Documents/Projects/Josh's/coretest/MyApp/bin/Debug/netcoreapp1.0/MyApp.dll'
1: (348) LaunchOptions MIDebuggerPath='/Users/joshrouwhorst/.vscode/extensions/ms-vscode.csharp-1.3.0/coreclr-debug/debugAdapters/clrdbg'
1: (348) LaunchOptions MIMode='clrdbg'
1: (348) LaunchOptions>
1: (348) LaunchOptions</LocalLaunchOptions>
R: {"success":false,"message":"Unable to start debugging. Launch options string provided by the project system is invalid. 's' is an unexpected token. Expecting white space. Line 3, position 66.","request_seq":2,"command":"launch","body":{"error":{"id":1104,"format":"Unable to start debugging. Launch options string provided by the project system is invalid. 's' is an unexpected token. Expecting white space. Line 3, position 66.","variables":null}},"running":false,"refs":null,"seq":0,"type":"response"}
C disconnect: {"restart":false}
R: {"success":true,"message":null,"request_seq":3,"command":"disconnect","body":null,"running":false,"refs":null,"seq":0,"type":"response"}
However, when looking at this output, I figured out the problem. I had the project under a folder named "Josh's". I copied the project over to a folder named "Joshs" (no apostrophe) and it worked for me.
What would be the proper procedure for this, close this and enter a new bug?
Environment data
dotnet --info
output:.NET Command Line Tools (1.0.0-preview2-003121)
Product Information:
Version: 1.0.0-preview2-003121
Commit SHA-1 hash: 1e9d529bc5
Runtime Environment:
OS Name: Mac OS X
OS Version: 10.11
OS Platform: Darwin
RID: osx.10.11-x64
VS Code version:
Version 1.4.0 (1.4.0)
C# Extension version:
1.3.0
Steps to reproduce
I followed the steps from the Instructions for setting up the .NET Core debugger.
dotnet new
dotnet restore
Console.WriteLine("Hello World!");
line of the automatically generated Program.cs fileExpected behavior
I would expect that the Program.cs file would run until it reaches the breakpoint, pause and allow me to step through the rest of the code.
Actual behavior
I receive this error message
And it gives me the choice to Close or Open launch.json
Here's the contents of my launch.json file, which is the default auto-generated file:
The text was updated successfully, but these errors were encountered: