Open unbegrenzt opened 4 years ago
@NTaylorMullen Is this a limitation in asp.net launch settings?
@NTaylorMullen Is this a limitation in asp.net launch settings?
Ya. I'm not entirely sure how you'd re-construct the launch settings to get the desired result but you can always do dotnet watch
and then re-attach in VSCode when you want to debug
@NTaylorMullen Hey, can you share your configuration to re-attach vscode debugger to a running .net app ?
Issue Description
Hi, I am developing in net core 2.2 thanks to the 'serverReadyAction' feature I can debug c # and javascript at the same time using the 'action' property with the value 'debugWithChrome', however using only the extension debug with chrome the browser just refreshed the page, right now the browser opens a new tab (which only if net core was cleared) I think the best experience in that case is to refresh the currently open tab.
Maybe that functionality already exists, but I would like to know how it is done, I am aware of your responses attached to the launch.json below. thank you very much for your attention.
Steps to Reproduce
--launch.json { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "chrome", "request": "launch", "name": "Launch Chrome", "url": "https://localhost:5001/", "webRoot": "${workspaceFolder}/wwwroot" }, { "name": ".NET Core Launch (web)", "type": "coreclr", "request": "launch", "preLaunchTask": "build", "program": "${workspaceFolder}/bin/Debug/netcoreapp2.2/DIN.dll", "args": [], "cwd": "${workspaceFolder}", "stopAtEntry": false, "serverReadyAction": { "pattern": "^\s*Now listening on:\s+https?://\S", "uriFormat": "https://localhost:5001/", "action": "debugWithChrome", "webRoot": "${workspaceFolder}/wwwroot" }, "env": { "ASPNETCORE_ENVIRONMENT": "Development" }, "sourceFileMap": { "/Views": "${workspaceFolder}/Views" } }, { "name": ".NET Core Attach", "type": "coreclr", "request": "attach", "processId": "${command:pickProcess}" } ] } --EOF
Expected Behavior
Actual Behavior
Logs
OmniSharp log
C# log
Environment information
VSCode version: 1.42.1 C# Extension: 1.21.12
Dotnet Information
SDK de .NET Core (reflejando cualquier global.json): Version: 3.1.101 Commit: b377529961 Entorno de tiempo de ejecuci�n: OS Name: Windows OS Version: 10.0.18362 OS Platform: Windows RID: win10-x64 Base Path: C:\Program Files\dotnet\sdk\3.1.101\ Host (useful for support): Version: 3.1.1 Commit: a1388f194c .NET Core SDKs installed: 2.1.602 [C:\Program Files\dotnet\sdk] 2.2.202 [C:\Program Files\dotnet\sdk] 2.2.402 [C:\Program Files\dotnet\sdk] 3.1.101 [C:\Program Files\dotnet\sdk] .NET Core runtimes installed: Microsoft.AspNetCore.All 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.1.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.All 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All] Microsoft.AspNetCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.1.15 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.AspNetCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App] Microsoft.NETCore.App 2.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.1.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 2.2.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.WindowsDesktop.App 3.1.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App] To install additional .NET Core runtimes or SDKs: https://aka.ms/dotnet-downloadVisual Studio Code Extensions
|Extension|Author|Version| |---|---|---| |aqueduct-helper|AzMoza|0.4.2| |asp-net-core-snippet-pack|adrianwilczynski|1.50.2| |better-comments|aaron-bond|2.0.5| |csharp|ms-vscode|1.21.12| |dart-code|Dart-Code|3.8.1| |dart-import|luanpotter|0.1.6| |debugger-for-chrome|msjsdiag|4.12.6| |divider|dinhani|2.2.1| |eva-theme|fisheva|0.7.9| |flutter|Dart-Code|3.8.1| |horizon-theme-vscode|jolaleye|2.0.2| |java|redhat|0.57.0| |Kotlin|mathiasfrohlich|1.7.1| |material-icon-theme|PKief|3.9.3| |razor-plus|austincummings|0.1.4| |remote-wsl|ms-vscode-remote|0.42.3| |theme-material-theme|jprestidge|1.0.1| |theme-panda|tinkertrain|1.3.0| |todo-tree|Gruntfuggly|0.0.167| |vs-color-picker|lihui|1.0.0| |vsc-community-material-theme|Equinusocio|1.4.1| |vscode-java-debug|vscjava|0.25.0| |vscode-java-dependency|vscjava|0.9.0| |vscode-java-pack|vscjava|0.8.1| |vscode-java-test|vscjava|0.22.1| |vscode-maven|vscjava|0.21.0| |vscode-sql-formatter|adpyke|1.4.4| |vscode-todo-highlight|wayou|1.0.4| |vscodeintellicode|VisualStudioExptTeam|1.2.5| |xml|DotJoshJohnson|2.5.0|;