0
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 5 years have passed since last update.

(途中...) らずぱいで MonoDevelop (C#のIDE環境) - デバッガが動かない

Posted at

monodevelopのデバッガがうごかない。ので、ビルドして、直接実行..
Mono04.png

環境

  • Raspberry Pi 3
  • 2016-05-27-raspbian-jessie.img

手順

  1. mono関連をインストール
    =>らずぱいで .NET (mono)

  2. sudo apt-get install monodevelop
    monodevelopのインストール

  3. 一応やっとく?

mozroots --import --sync
sudo apt-get install mono-xsp
sudo systemctl status mono-xsp4


4. `monodevelop`<br>コマンドラインから起動

![Mono01.png](https://qiita-image-store.s3.amazonaws.com/0/75594/4180ae38-355a-91f8-884a-0c187ab046c0.png)


5. プロジェクト作成
    1. File > Solution (Ctrl+Shift+N)
    2. Console Project [Next]
    3. いろいろ入れて [Create]<br>![Mono02.png](https://qiita-image-store.s3.amazonaws.com/0/75594/243913ec-915f-e68f-b893-ecfa380c7cf3.png)

6. ...実行
    1. 9行目くらいにブレークポント(ダブルクリックで赤丸<font color='red'>●</font>)を張って
    2. Build > Build All ('F8')
    3. Run > Start Debugging ('F5')<br><font color='red'>...デバッガがうごかない????</font>

    ![Mono03.png](https://qiita-image-store.s3.amazonaws.com/0/75594/e78ce71e-916a-f519-73a1-a8ff239cee51.png)

    うぅ~ん
7. `~/HelloDotNet/bin/Debug/HelloDotNet.exe` <br>直接、実行 

    ```shell-session
pi@raspberrypi:~ $ ~/HelloDotNet/bin/Debug/HelloDotNet.exe
Hello World!
pi@raspberrypi:~ $ 

Mono04.png

  1. xbuild HelloDotNet.sln
    コマンドラインからソリューションのビルド

pi@raspberrypi:~/HelloDotNet $ xbuild HelloDotNet.sln
XBuild Engine Version 14.0
Mono, Version 4.4.1.0
Copyright (C) 2005-2013 Various Mono authors

Build started 01/07/2016 04:34:47.

Project "/home/pi/HelloDotNet/HelloDotNet.sln" (default target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Debug|x86".
Target Build:
Project "/home/pi/HelloDotNet/HelloDotNet.csproj" (default target(s)):
Target PrepareForBuild:
Configuration: Debug Platform: x86
Created directory "bin/Debug/"
Created directory "obj/x86/Debug/"
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target CoreCompile:
Tool /usr/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/x86/Debug/HelloDotNet.exe Program.cs Properties/AssemblyInfo.cs obj/x86/Debug/.NETFramework,Version=v4.5.AssemblyAttribute.cs /target:exe /define:DEBUG /nostdlib /platform:x86 /reference:/usr/lib/mono/4.5-api/System.dll /reference:/usr/lib/mono/4.5-api/System.Core.dll /reference:/usr/lib/mono/4.5-api/mscorlib.dll /warn:4
Target DeployOutputFiles:
Copying file from '/home/pi/HelloDotNet/obj/x86/Debug/HelloDotNet.exe.mdb' to '/home/pi/HelloDotNet/bin/Debug/HelloDotNet.exe.mdb'
Copying file from '/home/pi/HelloDotNet/obj/x86/Debug/HelloDotNet.exe' to '/home/pi/HelloDotNet/bin/Debug/HelloDotNet.exe'
Done building project "/home/pi/HelloDotNet/HelloDotNet.csproj".
Done building project "/home/pi/HelloDotNet/HelloDotNet.sln".

Build succeeded.
	 0 Warning(s)
	 0 Error(s)

Time Elapsed 00:00:02.1443390

pi@raspberrypi:~/HelloDotNet $


## その他

1. sambaでフォルダを共有し、WindowsのVisualStudio2015u3から `HelloDotNet.sln`を開いて、デバッグがらく..

0
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
0
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?