# Run in debug mode

**URL:** <https://devforum.zoom.us/t/run-in-debug-mode/37661>\
**Category:** Windows\
**Created:** [December 4, 2020, 1:50pm UTC](https://devforum.zoom.us/t/run-in-debug-mode/37661 "2020-12-04T13:50:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nertht](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nertht/32/19627_2.png) [@nertht](https://devforum.zoom.us/u/nertht)\
**Post date:** [December 4, 2020, 1:50pm UTC](https://devforum.zoom.us/t/run-in-debug-mode/37661/1 "2020-12-04T13:50:13Z")

</div>

Description:  
I will firstly describe what I’m trying to do. All this is my pet project, so it doesn’t matters on cleanliness of final solution. I wish to notify my other app whenever any user mute/unmute theirs mics. I’m absolutely new in C++ (my native language is java or C#). I understand, that is quite dummy question, and it will probably have its roots in my poor knowledge of topic. But I would like to ask you for help with start. I found the place where I should start coding and tried to add simple print out. But it doesn’t work. I tried to popup error message, but it doesnt work as well. And I could not find any misstake in my added code:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/2/629f51a45ba31b0c6883cf796b83bc385db1303b.png)  
Method is in sdk\_util.h.  
Nothing happnes after I (or other participants in iniciated call) click to theirs “mute mic icon”. What am I missing?  
I run my app from relase configuration, because it crash from debug (running as debuge could solve my difficulty as well). What could I do to see any output (printed output to console, messagebox, debug mode or anything else)? Is there some topic about it?

Versions:

- SDK for windows, version: v5.2.42037.1112
- IDE: VS2019
- Device Spec: PC, Asus
- OS: Windows 10 Pro
- Version 2004

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [December 4, 2020, 6:40pm UTC](https://devforum.zoom.us/t/run-in-debug-mode/37661/2 "2020-12-04T18:40:11Z")

</div>

Hey @nertht!

Thanks for using the dev forum!

There are no dummy questions. If anything, asking “dummy” questions is the fastest way to get better. 🙂

Unfortunately, the SDK can only run in release mode. However, there is a way to see if your callback is being triggered. Inside of your onAudioBtnClicked function, add \_\_debugbreak(); This will stop the the application at that point, similar to a breakpoint. You can also put \_\_debugBreak(); in your WinMain to see how it works. If your application does not pause at \_\_debugBreak(); when you click the button, the callback is likely set up incorrectly. Which we can troubleshoot after.

std::cout does not behave the same way in c++ Windows GUI applications as it does in c++ console applications, so you wont see those print statements unless you add functionality for it. However, you can make a test text file that std::cout can write to. This stackOverFlow post explains this well: [https://stackoverflow.com/a/191912](https://stackoverflow.com/a/191912)

Can you try this and let me know what happens, then we can troubleshoot from there?

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![nertht](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nertht/32/19627_2.png) [@nertht](https://devforum.zoom.us/u/nertht)\
**Post date:** [December 5, 2020, 7:53pm UTC](https://devforum.zoom.us/t/run-in-debug-mode/37661/3 "2020-12-05T19:53:41Z")

</div>

Thanks for such a great answer 🙂 Everything is ok now. I found that I was doing wrong thing in the wrong place. Right spot to do the job was not virtual function. After reading some basics about C++ is it clear, that virtual function is just (as it said) virtual representation of function. So I found this: ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/0/108116247da17e8d7abf715b3dd5af425fdec8d2.png) in custom\_ui\_mgr.cpp file. And that do excatly the job I need. Breakpoits work fine. It makes my day.  
Thanks for all your support.  
Petr K.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [December 10, 2020, 11:09pm UTC](https://devforum.zoom.us/t/run-in-debug-mode/37661/4 "2020-12-10T23:09:38Z")

</div>

Hey @nertht,

Awesome! Nice work, I am glad you got it working!  
Please let us know if you have any other questions 🙂

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [August 18, 2021, 3:49pm UTC](https://devforum.zoom.us/t/run-in-debug-mode/37661/6 "2021-08-18T15:49:25Z")

</div>

Closed on August 18, 2021, 3:49pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
