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

dotnet 8 from brew + vscode doesn't get injected #110

Open
aviramha opened this issue Feb 22, 2024 · 1 comment
Open

dotnet 8 from brew + vscode doesn't get injected #110

aviramha opened this issue Feb 22, 2024 · 1 comment

Comments

@aviramha
Copy link
Member

probably SIP issue
macOS
launch.json

{
    // Use IntelliSense to find out which attributes exist for C# debugging
    // Use hover for the description of the existing attributes
    // For further information visit https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Launch Dotnet",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            // If you have changed your server URLs, update the "serverReadyAction" pattern and uriFormat
            "env": {
                "ASPNETCORE_ENVIRONMENT": "Development",
                "RUST_LOG": "mirrord=trace"
            },
            "sourceFileMap": {
                "/Views": "${workspaceFolder}/Views"
            },
            "program": "${workspaceFolder}/src/bin/Debug/net8.0/fun.dll",
            "args": [],
            "cwd": "${workspaceFolder}/src",
            "stopAtEntry": false,
            "serverReadyAction": {
                "action": "openExternally",
                "pattern": "\\bNow listening on:\\s+(https?://\\S+)",
                "uriFormat": "%s://localhost:8080"
            },
            "launchBrowser": {
                "enabled": true,
                "args": "${auto-detect-url}",
                "windows": {
                    "command": "cmd.exe",
                    "args": "/C start ${auto-detect-url}"
                },
                "osx": {
                    "command": "open"
                },
                "linux": {
                    "command": "xdg-open"
                }
            }
        },
        {
            "name": ".NET Core Attach",
            "type": "coreclr",
            "request": "attach"
        }
    ]
 }
@aviramha
Copy link
Member Author

I was able to reproduce it. I debugged it a bit and seems we don't have any way to access the actual executable binary to patch it and replace it so it's gonna be a tough one ;(

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

No branches or pull requests

1 participant