Code Monkey home page Code Monkey logo

Comments (7)

ayuckhulk avatar ayuckhulk commented on May 18, 2024

@itn3000 Thank you for the detailed report!
I was not able to reproduce this issue right away (I don't have win8 machine, but on win10 everything worked ok).
Could you please enable engine logging and post the output?

            ...
            "internalConsoleOptions": "openOnSessionStart",

            "logging": {
                "engineLogging": true
            },

            "pipeTransport": {
            ...

Also please enable debugger logs like this and attach them to this issue:

"debuggerPath": "g:/bin/netcoredbg/netcoredbg.exe --log=file"

(log files are created in TEMP folder, you can list them in PowerShell with ls $env:temp\netcore*)

from netcoredbg.

itn3000 avatar itn3000 commented on May 18, 2024

Thank you for replying, I made debug logs.
"netcoredbg-vscode-debugconsole.txt" is text from vscode's debug console.
netcoredbg-logs.zip

from netcoredbg.

itn3000 avatar itn3000 commented on May 18, 2024

After my investigating, I found I misunderstood the point at issue.

It is not depended on netfm, but on filename case.
In windows, drive letter of filename in pdb is large case when build with dotnet build,
but small case when specified project path with small case(like dotnet build c:\path\to\csproj).
This causes the filename unmatch in ResolveSequencePoint.

I replaced following point to x.Equals(y, StringComparison.OrdinalIgnoreCase), and found debugging works expectedly.

FileNameMatches = s => GetFileName(s) == fileName;
else
FileNameMatches = s => s == filePath;

from netcoredbg.

ayuckhulk avatar ayuckhulk commented on May 18, 2024

@itn3000 Wow, that's really great that you found a solution! Would you be so kind to create a pull request with the fix?

from netcoredbg.

itn3000 avatar itn3000 commented on May 18, 2024

I created PR as #16, please review it.

from netcoredbg.

smotti avatar smotti commented on May 18, 2024

I still encounter issues with non-working breakpoints. The application is a ASP MVC (WebApi) app. Setting breakpoints using vsdbg work as expected.
Also setExceptionsBreakpoints fails, and I don't know why.

Edit: The same is the case for the default console app template.

Environment

Visual Code: 1.49.2
C# Extension: 1.23.2
Omnisharp: 1.37.1
netcoredbg: latest release build (Aug 20)
dotnet core sdk: 3.1.402
OS: Windows_NT x64 10.0.14393 (Windows Server 2016 Datacenter)

Steps to reproduce

The same as OP. Including the debug launch config.

Output

netcoredb_vscode.log

Unfortunately I don't really know where to start looking to help troubleshoot the issue further. So any guidance is appreciated.

Thank you!

from netcoredbg.

viewizard avatar viewizard commented on May 18, 2024

@smotti I updated netcoredbg sources, could you please check it?
If issue still here, please, open new issue instead.

from netcoredbg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.