microsoft / microsoft/vscode-dotnettools
[BUG] Integrated / External terminal debug issue
Open
@adrianvmsft is already working on this.
Since Apr 29, 2024.
area-project-cps
bug
- Dominant language
- No language data
- Stars
- 321
- Forks
- 54
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 2
Description
My setting in settings.json is:
"csharp.debug.console": "externalTerminal"
But when I run debug (ctrl+F5 or F5) built in terminal still reveals (tested on Console, WEB API and Blazor apps):
Please fix this. Prevent the built-in terminal from being revealed.
It should be fixed but in my case it does not works.
More info.
- OS: Windows 11 Home, 22H2, build: 22621.1848
- CPU: Intel Core i5-10210U
- VSCode version: 1.80.1
- C# Dev Kit Extension version: 0.4.5 (Pre-Release) and 0.3.21
- C# Extension version: 2.0.376
Debug info:
-> (C) {"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"coreclr","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true,"supportsArgsCanBeInterpretedByShell":true,"supportsMemoryEvent":true,"supportsStartDebuggingRequest":true},"type":"request","seq":1}
-> (C) {"command":"launch","arguments":{"name":"C#: ConsoleApp1 Debug","type":"coreclr","request":"launch","program":"d:\\Desktop\\Temp2\\ConsoleApp1\\bin\\Debug\\net7.0\\ConsoleApp1.exe","args":"","cwd":"d:\\Desktop\\Temp2\\ConsoleApp1\\bin\\Debug\\net7.0\\","env":[],"console":"externalTerminal","checkForDevCert":false,"stopAtEntry":false,"justMyCode":true,"requireExactSource":true,"enableStepFiltering":true,"logging":{"exceptions":true,"moduleLoad":true,"programOutput":true,"engineLogging":false,"browserStdOut":true,"elapsedTiming":false,"threadExit":false,"processExit":true},"suppressJITOptimizations":false,"symbolOptions":{"searchPaths":[],"searchMicrosoftSymbolServer":false,"searchNuGetOrgSymbolServer":false,"cachePath":"","moduleFilter":{"mode":"loadAllButExcluded","excludedModules":[],"includedModules":[],"includeSymbolsNextToModules":true}},"allowFastEvaluate":true,"internalConsoleOptions":"openOnSessionStart","__sessionId":"59b6c457-615c-4569-9af9-0ae10d710c59"},"type":"request","seq":2}
<- (E) {"seq":4,"type":"event","event":"output","body":{"category":"console","output":"
-------------------------------------------------------------------\n
You may only use the Microsoft .NET Core Debugger (vsdbg) with\nVisual Studio Code, Visual Studio or Visual Studio for Mac software\nto help you develop and test your applications.
\n-------------------------------------------------------------------
\n","severity":"ok"}}
-------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
<- (R) {"seq":5,"type":"response","request_seq":2,"success":true,"command":"launch"}
<- (E) {"seq":6,"type":"event","event":"initialized","body":{}}
-> (C) {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":3}
<- (R) {"seq":7,"type":"response","request_seq":3,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]}}
-> (C) {"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[{"filterId":"user-unhandled"}]},"type":"request","seq":4}
<- (R) {"seq":8,"type":"response","request_seq":4,"success":true,"command":"setExceptionBreakpoints","body":{"breakpoints":[{"verified":true}]}}
ServiceBroker Start: 0 : Requesting proxy to "Microsoft.VisualStudio.Debugger.ManagedEditAndContinueCsDevKitEngineService (0.1)"
-> (C) {"command":"configurationDone","type":"request","seq":5}
ServiceBroker Transfer: 0 : Transfer, relatedActivityId=428008bd-33ec-4895-8472-a95db9a38972
ServiceBroker Start: 0 : Requesting pipe to "Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest (0.1)"
ServiceBroker Stop: 0 : Requesting pipe to "Microsoft.VisualStudio.Server.IBrokeredServiceBridgeManifest (0.1)"
ServiceBroker Transfer: 0 : Transfer, relatedActivityId=d97fa440-8f7a-4097-9a9b-e7751bdf993a
<- (E) {"seq":9,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/ProcessCreate","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"17.7.10710.2 commit:60ff007cf5ef9705e5ae218e80e7fada16b3a487","VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.22621","VS.Diagnostics.Debugger.vsdbg.TargetArchitecture":"AMD64"}}}
<- (E) {"seq":10,"type":"event","event":"process","body":{"name":"d:\\Desktop\\Temp2\\ConsoleApp1\\bin\\Debug\\net7.0\\ConsoleApp1.exe","systemProcessId":19276,"isLocalProcess":true,"startMethod":"launch"}}
<- (E) {"seq":11,"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/vsdbg/Launch","data":{"VS.Diagnostics.Debugger.vsdbg.OSFamily":"Windows","VS.Diagnostics.Debugger.vsdbg.Version":"17.7.10710.2 commit:60ff007cf5ef9705e5ae218e80e7fada16b3a487","VS.Diagnostics.Debugger.vsdbg.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.vsdbg.WindowsVersion":"10.0.22621","VS.Diagnostics.Debugger.vsdbg.Launch.Duration":156,"VS.Diagnostics.Debugger.vsdbg.TargetType":"Live","VS.Diagnostics.Debugger.vsdbg.AdapterId":"coreclr","VS.Diagnostics.Debugger.vsdbg.SourceFileMappings":0}}}
<- (R) {"seq":12,"type":"response","request_seq":5,"success":true,"command":"configurationDone"}
-> (C) {"command":"threads","type":"request","seq":6}
<- (R) {"seq":13,"type":"response","request_seq":6,"success":true,"command":"threads","body":{"threads":[]}}
ServiceBroker Stop: 0 : Requesting proxy to "Microsoft.VisualStudio.Debugger.ManagedEditAndContinueCsDevKitEngineService (0.1)"
<- (E) {"seq":14,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\7.0.10\\System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.\n"}}
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.10\System.Private.CoreLib.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
<- (E) {"seq":15,"type":"event","event":"module","body":{"reason":"new","module":{"id":1000,"name":"System.Private.CoreLib.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\7.0.10\\System.Private.CoreLib.dll","isOptimized":true,"isUserCode":false,"version":"7.00.1023.36312","symbolStatus":"Skipped loading symbols."}}}
<- (E) {"seq":16,"type":"event","event":"thread","body":{"reason":"started","threadId":15184}}
<- (E) {"seq":17,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'd:\\Desktop\\Temp2\\ConsoleApp1\\bin\\Debug\\net7.0\\ConsoleApp1.dll'. Symbols loaded.\n"}}
Loaded 'd:\Desktop\Temp2\ConsoleApp1\bin\Debug\net7.0\ConsoleApp1.dll'. Symbols loaded.
<- (E) {"seq":18,"type":"event","event":"module","body":{"reason":"new","module":{"id":1001,"name":"ConsoleApp1.dll","path":"d:\\Desktop\\Temp2\\ConsoleApp1\\bin\\Debug\\net7.0\\ConsoleApp1.dll","isOptimized":false,"isUserCode":true,"version":"1.00.0.0","symbolStatus":"Symbols loaded.","symbolFilePath":"d:\\Desktop\\Temp2\\ConsoleApp1\\bin\\Debug\\net7.0\\ConsoleApp1.pdb"}}}
<- (E) {"seq":19,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\7.0.10\\System.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.\n"}}
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.10\System.Runtime.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
<- (E) {"seq":20,"type":"event","event":"module","body":{"reason":"new","module":{"id":1002,"name":"System.Runtime.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\7.0.10\\System.Runtime.dll","isOptimized":true,"isUserCode":false,"version":"7.00.1023.36312","symbolStatus":"Skipped loading symbols."}}}
<- (E) {"seq":21,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\7.0.10\\System.Console.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.\n"}}
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.10\System.Console.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
<- (E) {"seq":22,"type":"event","event":"module","body":{"reason":"new","module":{"id":1003,"name":"System.Console.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\7.0.10\\System.Console.dll","isOptimized":true,"isUserCode":false,"version":"7.00.1023.36312","symbolStatus":"Skipped loading symbols."}}}
<- (E) {"seq":23,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\7.0.10\\System.Threading.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.\n"}}
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.10\System.Threading.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
<- (E) {"seq":24,"type":"event","event":"module","body":{"reason":"new","module":{"id":1004,"name":"System.Threading.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\7.0.10\\System.Threading.dll","isOptimized":true,"isUserCode":false,"version":"7.00.1023.36312","symbolStatus":"Skipped loading symbols."}}}
<- (E) {"seq":25,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\7.0.10\\System.Text.Encoding.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.\n"}}
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.10\System.Text.Encoding.Extensions.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
<- (E) {"seq":26,"type":"event","event":"module","body":{"reason":"new","module":{"id":1005,"name":"System.Text.Encoding.Extensions.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\7.0.10\\System.Text.Encoding.Extensions.dll","isOptimized":true,"isUserCode":false,"version":"7.00.1023.36312","symbolStatus":"Skipped loading symbols."}}}
<- (E) {"seq":27,"type":"event","event":"output","body":{"category":"console","output":"Loaded 'C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\7.0.10\\System.Runtime.InteropServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.\n"}}
Loaded 'C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.10\System.Runtime.InteropServices.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
<- (E) {"seq":28,"type":"event","event":"module","body":{"reason":"new","module":{"id":1006,"name":"System.Runtime.InteropServices.dll","path":"C:\\Program Files\\dotnet\\shared\\Microsoft.NETCore.App\\7.0.10\\System.Runtime.InteropServices.dll","isOptimized":true,"isUserCode":false,"version":"7.00.1023.36312","symbolStatus":"Skipped loading symbols."}}}
-> (C) {"command":"threads","type":"request","seq":7}
<- (R) {"seq":29,"type":"response","request_seq":7,"success":true,"command":"threads","body":{"threads":[{"id":15184,"name":"Thread #15184"}]}}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.