1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

LinuxとVsCodeでC# GUIアプリをデバッグする その2

Last updated at Posted at 2022-12-26

LinuxとVsCodeでC# GTK GUIアプリをデバッグする その2

前回

launch.jsonに2行追加するだけでデバッグできる

アプリを毎回手動でビルドしなくても、自動でビルドした後にデバッグできるようになる

"program": "dllファイルまでのパスを記入",
"args": ["--project","プロジェクトファイルまでのパス"],

dllファイルまでのパスを記入。環境変数を確認 直接書いたほうが良い
argsに引数に--projetとprojectファイルまでのパスを記入する。
これでデバッグできることがわかりました。

lanuch.json

{ 
    "version": "0.2.0",
    "configurations": [
        {
            "name": ".NET Core Launch (console)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "dllファイルまでのパスを記入する",
            "args": ["--project","プロジェクトファイルまでのパス"],
            "cwd": "${workspaceFolder}",
            "stopAtEntry": false,
            "console": "internalConsole"
        }  
    ]
}

続く

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?