Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debugger:It should not hit the breakpoint twice #1422

Open
qian6 opened this issue Apr 24, 2017 · 2 comments
Open

Debugger:It should not hit the breakpoint twice #1422

qian6 opened this issue Apr 24, 2017 · 2 comments

Comments

@qian6
Copy link

qian6 commented Apr 24, 2017

Environment data

dotnet --info output:

  • OS Name: Ubuntu
  • OS Version: 14.04
  • OS Platform: Linux
  • RID: Ubuntu.14.04-x64
  • Base Path: /usr/share/dotnet/sdk/1.0.1

OS: LinuxMint 17
VS Code version: v1.11.2
C# Extension version:1.9.0

Steps to reproduce

  1. Execute the following command to create a dotnet project
    dotnet new mvc -o web
    cd web
    dotnet restore
    dotnet run
  2. Open web project in vscode.
  3. Set a breakpoint at line of 2 in Index.cshtml file.
  4. Press F5(It hit this bp).
  5. Press F5

Expected behavior

It should in running mode and display UI

Actual behavior

It hit this breakpoint again.

Log:log.txt

@gregg-miskelly
Copy link
Contributor

@qian6 this is almost certainly because the web browser is hitting the web page twice. Do you have a restored tab open? If not, can you a Debug.WriteLine statement at that line and confirm the code just is invoked more than once?

@GraceDong
Copy link

I tried to reproduce this issue again, and I found the web browser is not loaded when first hit the breakpoint. The web browser is loaded and hit the breakpoint again after above steps #5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants