Loading...

Tell Your Code To Debug When You’re Good And Ready!

Tell Your Code To Debug When You’re Good And Ready!

This post provides a solution to a common issue faced while working on the Early Bound Generator in which attaching the debugger to the process becomes a race condition, due to which it is difficult to debug the process effectively without errors. With this solution, the author has streamlined the debugging process to remove the race condition. The post includes a code snippet that waits for the debugger to attach itself to the process to debug the code effectively. The ConfigHelper class is used to look for a given AppSetting in the Config file and wait indefinitely every 3 seconds until the debugger is attached, checking if the "WaitForAttachedDebugger" value is present.

Readers interested in the topic might also want to check out the author's Raise The Bar video series.

Published on:

Learn more
.Net Dust
.Net Dust

NULL

Share post:

Related posts

Power Automate Development: Best Practices To Implement

Power Automate can be overwhelming initially, but don't fret, as this tutorial will guide you on the best development practices to adopt on th...

7 months ago

Debugging Code: My Unconventional Approach | AutomateValue

The author of this article shares their approach to writing code - they almost never debug. While their approach may seem unusual to other dev...

7 months ago

Guide to Debugging Code with Console Apps for Plugins, Azure Functions, and Custom Workflows in Microsoft Dynamics 365

If you're a developer working with the Microsoft Dynamics 365 platform, you'll be interested in this guide to debugging code with console apps...

11 months ago

Guide to Debugging Code with Console Apps for Plugins, Azure Functions, and Custom Workflows in Microsoft Dynamics 365

If you're working with Microsoft Dynamics 365 platform, debugging your code is an essential part of the development process, and this guide pr...

11 months ago

Dataverse Browser V1.1.0.1 is available for Dataverse Plugin Debugging

If you're looking to step up your debugging game, Dataverse Browser V1.1.0.1 is just what you need. Designed with Microsoft Dynamics in mind, ...

1 year ago

Debugging JavaScript in Your App: Power Tools for Developers

As a developer, debugging JavaScript in your app can be challenging, but luckily, the Power Apps/Dynamics 365 Developer Portal offers some pow...

2 years ago

Debugging NuGet Packages: Understanding Debugging Symbols and Using Source Link

Debugging allows us to troubleshoot problems in our applications by stepping through our code line by line, and stepping into methods when nec...

2 years ago

A Useful Debugging Tip For Power Apps You May Not Be Using

Are you tired of spending hours trying to debug your Power Apps? This post offers a helpful tip that you may not be using yet. As Power Apps d...

2 years ago

Handle All Your Plugin Exceptions In One Place, And Then Hide It!

In coding, one of the recommended best practices is to avoid creating duplicate code as it leads to maintenance issues. Therefore, it is advis...

4 years ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy