When i add ?umbDebugShowTrace=true i dont get any usable debug info, like when i used webforms. I just get the miniprofiler, but i cant see whats wrong in my macro.
In order to get debug info for macros you can do a few things:
Use visual studio and set breakpoints
Enable tracing in your web.config and visit /trace.axd to get info like you used to get when using webforms (in MVC it's not possible to add this info inline with the page any more
Go into your ~./config/umbracoSettings.config and change the line <MacroErrors>inline</MacroErrors> to <MacroErrors>throw</MacroErrors> - this will give you errors right where the macro is in the page
Of course you can also add logging yourself so you can see what's going on in your code.
umb 7 MVC get debug info from macro
Hi,
When i add ?umbDebugShowTrace=true i dont get any usable debug info, like when i used webforms. I just get the miniprofiler, but i cant see whats wrong in my macro.
I have this in my web.config:
Can anyone help?
Hi Peter,
Have you added this to your web.config file
And then to get the debug info you should add this query string to the url
Hope this helps,
/Dennis
Hi, thank you for answering.
i tried adding debug=true.
It still just gives me the profiler with a red link. But there are no usefull info.
http://www.pcl.dk/err_red.png http://www.pcl.dk/err.png
In order to get debug info for macros you can do a few things:
~./config/umbracoSettings.config
and change the line<MacroErrors>inline</MacroErrors>
to<MacroErrors>throw</MacroErrors>
- this will give you errors right where the macro is in the pageOf course you can also add logging yourself so you can see what's going on in your code.
Great thanks, that helped
is working on a reply...