Solution to MonoDevelop on Linux single-step debugging

Source: Internet
Author: User

Solution to MonoDevelop on Linux single-step debugging

In MonoDevelop, debugging for external assembly (. dll) is disabled by default. You can solve this problem by following the steps below.

1. Choose Edit> Preferences> Debugger from the menu to go to the configuration page of the Debugger and cancel the "Debug project code only; do not step into framework code." option.

2. if your application is a console program, you also need to go to the running setting page of the project (right-click the project and select "Options" in the pop-up menu, cancel the setting item "running on the external console.

3. However, even in this case, you cannot perform one-step debugging to access the external Assembly because the Mono debugging file (*. dll. mdb) is missing. Therefore, you also need to copy the. mdb file corresponding to all the external assembly files to the "bin/Debug" directory of the current Host project. Note: If the external Assembly updates the code, remember to copy the corresponding. mdb file again.

4. It is still difficult to manually copy each time, especially when there are many external assemblies, so it is necessary to create a copy script. Create a script file named deploy. sh in the directory of the Host project, run the command: vi deploy. sh, and then write it in the first line of the vi Editor :#! /Bin/bash. The second line begins to write the copy command. After editing, remember to use the command chmod 777 deploy. sh to enable the executable attributes.

5. In MonoDevelop, enter the property Setting dialog box of the Host project, and add the "After Build" command item deploy. sh on the "Build"-"Custom command" setting page.

Now, you can perform one-step debugging on the external library in MonoDevelop!

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.