# Debug build doesn't generate Debug Info

**URL:** <https://forum.juce.com/t/debug-build-doesnt-generate-debug-info/8527>\
**Category:** Windows\
**Created:** [April 19, 2012, 1:37pm UTC](https://forum.juce.com/t/debug-build-doesnt-generate-debug-info/8527 "2012-04-19T13:37:40Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![slajar](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@slajar](https://forum.juce.com/u/slajar)\
**Post date:** [April 19, 2012, 1:37pm UTC](https://forum.juce.com/t/debug-build-doesnt-generate-debug-info/8527/1 "2012-04-19T13:37:40Z")

</div>

I have a Introjucer project. It works perfectly to create all those nice project files 🙂 Unfortunately, I have a small problem with the Debug mode.  
When I recreate the project files for Visual 2008 the newly generated vcprj doesn’t include “/DEBUG” nor “/MAP” nor “/MAPINFO:EXPORTS”. So it’s quite impossible for the vc debugger to step debug into the generated binary. Ok, it’ not a big deal since I can enable them each time I need 'em. Well since I am still in the phase of designing the application new files are added frequently and I run Introjucer quite often. Each time a new file is added I have to reenable the Debugging this is quite annoying :roll:  
It there a possibility to generally enable it for the Debugmode?

Thanks.

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [April 22, 2012, 12:35pm UTC](https://forum.juce.com/t/debug-build-doesnt-generate-debug-info/8527/2 "2012-04-22T12:35:30Z")

</div>

you should be able to debug every new generated project by default (just start in debug build from your ide), there is no need to edit the configuration

---

<div class="post-metadata">

**Author:** ![slajar](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@slajar](https://forum.juce.com/u/slajar)\
**Post date:** [April 25, 2012, 9:29am UTC](https://forum.juce.com/t/debug-build-doesnt-generate-debug-info/8527/3 "2012-04-25T09:29:43Z")

</div>

Hey chkn,

thanks for your reply.  
Well, I don’t have the possibility to start the debug build from the IDE since I am building a DLL.  
Furthermore I am quite sure not all possibilities to debug are enabled when neither “/DEBUG” nor “/MAP” nor “/MAPINFO:EXPORTS” are enabled.  
IMO a VST is also a DLL that needs to be debugged some times 😉 How about that? Is it working without any changes to the project preferences?

regards

---

<div class="post-metadata">

**Author:** ![chkn](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/chkn/32/3862_2.png) [@chkn](https://forum.juce.com/u/chkn)\
**Post date:** [April 25, 2012, 9:35am UTC](https://forum.juce.com/t/debug-build-doesnt-generate-debug-info/8527/4 "2012-04-25T09:35:09Z")

</div>

> [@](#):
>
> Well, I don’t have the possibility to start the debug build from the IDE since I am building a DLL.

Of course you have! Define the executable which is using the dll in : Configuration Properties → Debugging → Command

---

<div class="post-metadata">

**Author:** ![slajar](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@slajar](https://forum.juce.com/u/slajar)\
**Post date:** [April 25, 2012, 10:38am UTC](https://forum.juce.com/t/debug-build-doesnt-generate-debug-info/8527/5 "2012-04-25T10:38:22Z")

</div>

Thank you for the answer.  
Hhm, of course I know that I can attach an executable there 😉 Well, this is not suitable for me since I have to use another IDE that starts the main program. :mrgreen:  
Probably this is again a very uncommon way of developing with juce … I’ll need to live with changing the properties over and over again … or when I’ll provide a patch for the debug mode. I am sure those switches won’t destroy anything else.
