Umbraco debugging made easy

January 20th, 2008

This post will show you how to debug umbraco macros, with the click of a browser button.

When you need to debug your macros, either xslt or usercontrols you do this by appending some text to the querystring on the page you need to debug.  The most important for me is ?umbDebugShowTrace=true it shows you the build in stack trace from the .NET framework. You can use this if your macro shows/throws an error, in the trace you can see exactly what went wrong in your xslt- or usercontrol macro. The other one is ?umbDebug=true which will show you what is injected into your macro.

For more information see the book debugging

Some screenshots from Internet Explorer and Firefox

Debugging in Internet Explorer

Debugging in Firefox

The trick is to make some favorite links in your browser containing javascript appending the debug querystring to the current page in browser. This is called bookmarklets.

Installing the debug buttons

Option 1: Install via right click in Internet Explorer
Make sure the "Links" is checked under View ? Toolbars ? Links.
Place the three favorites links in the favorite folder called Links.
Right click on this link: Umbraco Debug and choose "Add to favorites...".
Right click on this link: Umbraco Macro Info and choose "Add to favorites...".
Right click on this link: Umbraco Remove Debug and choose "Add to favorites...".

Option 2: Install via drag'n drop in Firefox
Make sure the "Bookmarks Toolbar" is checked under View ? Toolbars ? Bookmarks Toolbar.
Drag this link: Umbraco Debug up to your Bookmarks Toolbar.
Drag this link: Umbraco Macro Info up to your Bookmarks Toolbar.
Drag this link: Umbraco Remove Debug up to your Bookmarks Toolbar.

Are your buttons not visible after being installed?
Click here to see how to find them in Internet Explorer.
Click here to see how install them in Firefox via option 1

 

Tags: Umbraco, Umbraco Extension

Comments

#1 - Hartvig on January 20, 2008 22:16

Top notch - works really sweet!

#2 - Karl Kopp on January 21st, 2008 04:57

Why not update the Umbraco books with this super useful information?

#3 - Simon on January 21st, 2008 16:36

Will add a link to this page in the Umbraco book titled Umbraco Debugging as soon as I get home :)

#4 - Simon Justesen on January 21st, 2008 16:40

Erhm.. Correction - the book is called "Debugging"

#5 - Phillip on June 05, 2008 13:33

Excellent! You saved me from my debugging nightmare. It works great! Thanks

#6 - Nikola on July 15, 2008 10:14

Perfect!! I always forget the correct sequense of words: umb debug show and trace.. :D

#7 - software development company on August 27, 2009 20:15

Cool,

it saved my day I'm tired of debuging and thanks for your help

Thanks for writing, most people don't bother.

#8 - web development company on October 19, 2009 11:10

Hey, that was interesting,

this is a great help for debugging macros, thanks for sharing,

Keep up the good work

Anyway, thanks for the post

#9 - Laurie on November 12nd, 2009 12:47

Its on our computers! :D Little gem this!

#10 - http://buypillsshop.info on December 06, 2009 23:32

http://buypillsshop.info

#11 - future music store on December 07, 2009 10:45

Its on our computers! ;) Little gem this!

#12 - business plan on January 05, 2010 11:39

nice blog!

#13 - Buy viagra sydney on January 08, 2010 14:57

Buy viagra sydney

#14 - lasix on January 11st, 2010 12:28

For firefox more extensions exist! Use firefox, IE must be die =)

#15 - download minimal techno on January 20, 2010 20:21

Can i use it with Opera?

#16 - blog health on January 24, 2010 16:47

No. Yep, Opera also supported.

#17 - http://avto-transfer.com.ua/ on February 11st, 2010 16:56

Car Rental in Ukraine

#18 - Dame on March 01st, 2010 08:32

Best idea!!!

#19 - facebook farmville cheats on March 03rd, 2010 14:34

Thanks for sharing.

#20 - PeterJ on March 04, 2010 21:23

Very useful post. I'm just considering using Umbraco so I'm routing around the web for info.

#21 - order pills online on March 12nd, 2010 11:43

Keep up the good work.

#22 - Medical assistant on March 21st, 2010 20:16

thisi also may i coming for life?!=)

#23 - orange county on March 26, 2010 11:19

Your topic chosen really stickes as it is so actual that people cannot help discussing it every day. Hopefully, we all can get some changes made to that concerning issues.

#24 - Sergun on March 28, 2010 08:41

omg. Good idea _)

#25 - http://buypillsonline.in on April 07, 2010 16:10

Cool,

it saved my day I'm tired of debuging and thanks for your help

Thanks for writing, most people don't bother.

#26 - farmville cheats on April 14, 2010 14:35

Your page is truly inspirational. I too am a mom with a binder and a heart full of love. I recommit to following this system for an entire week. Hopefully I'll get back to you with some positive results. Thank you so much for the inspiration.

#27 - Film Streaming on April 19, 2010 16:28

Thanks for writing, most people don't bother.

#28 - Buy Cialis Online on April 22nd, 2010 12:20

omg. Good idea _)

#29 - voiture thermique on May 08, 2010 05:00

i am loving this, you have truly helped me.

#30 - Wex on May 14, 2010 00:46

This is good idea!

#31 - laptop adapter manufacturer on May 21st, 2010 11:13

page you need to debug. The most important for me is ?umbDebugShowTrace=true it shows you the build in stack trace from the .NET framework. You can use this if your macro shows/throws an error, i

#32 - RAR Downloads on May 24, 2010 12:33

It works great, Thanks

#33 - ziona on May 27, 2010 04:39

thanks for your sharing

#34 - article directories on May 28, 2010 11:18

Friends Do not hesitate, quickly!
<a title="create a free blog" href="http://fashionsdiary.com/">create a free blog</a>
<a title=" article directories" href="http://www.pr80.com"> article directories</a>
<a title=" article directory list" href="http://www.pr80.com"> article directory list</a>

#35 - buy voltaren on May 31st, 2010 14:40

buy voltaren

#36 - Buy Keflex on May 31st, 2010 14:43

Buy Keflex

#37 - Buy Femara on May 31st, 2010 14:46

Buy Femara

#38 - Buy Diltiazem on May 31st, 2010 14:47

Buy Diltiazem

#39 - Buy Claritin on May 31st, 2010 14:48

Buy Claritin

#40 - Buy Lamictal on May 31st, 2010 14:50

Buy Lamictal

#41 - Buy Nizoral on May 31st, 2010 14:50

Buy Nizoral

#42 - Buy Protonix on May 31st, 2010 14:52

Buy Protonix

#43 - Buy Singulair on May 31st, 2010 14:53

Buy Singulair

#44 - Buy cytotec on May 31st, 2010 14:55

Buy cytotec

#45 - cam on June 01st, 2010 11:12

nice blog sir.

#46 - click here 941-329 on June 11st, 2010 13:53

this information is really new for me. I have to admit that it was quite interesting to read a=it and to know something new. great

#47 - ED ONLINE STORE on June 13rd, 2010 14:29

ED ONLINE STORE

#48 - nike air jordan on June 15, 2010 07:02

You have got a really useful blog. I am a newbie and your success is very much an inspiration for me.now debugging is easy.

#49 - bags on June 17, 2010 03:38

How to Buy Bachelors the Perfect Gift for Labour Day To Appreciate Most Amazing <A href="http://www.bagsok.com">bags</A> in America What Scarlett Johansson Wearing? !

#50 - motobineuse on June 28, 2010 02:30

what an amazing post. you have definitely caught my attention and i will add this to my blog.

#51 - Airport Taxi Transfers To From Airport on June 30, 2010 08:30

This is an excellent topic you are discussing about and i really appreciate it. It should be going on.

#52 - coach bags on July 03rd, 2010 05:22

I am happy to find this post very useful for me, as it contains lot of information. I always prefer to read the quality content and this thing I found in you post. Thanks for sharing!

#53 - Wedding dress wholesale on July 04, 2010 09:05

Your topic chosen really stickes as it is so actual that people cannot help discussing it every day. Hopefully, we all can get some changes made to that concerning issues.

#54 - p90x on July 05, 2010 08:53


p90x<a href="http://www.p90xworkoutdvdset.com/" title="p90x">p90x</a> p90x

cheap ed hardy clothing [url=http://www.cheap-ed-hardy.com/]cheap ed hardy clothing[/url] cheap ed hardy clothing

#55 - mbt shoes on July 06, 2010 09:21

This kind shoes are very comfortable wearing. What's more, it have the function to protect knee. At the same time, it is also good for our body shape correction.

#56 - mbt shoes on July 06, 2010 09:24

This kind shoes are very comfortable wearing. What's more, it have the function to protect knee. At the same time, it is also good for our body shape correction.

#57 - alcohol detox on July 09, 2010 18:32

Maybe you should consider adding additional videos or charts to your weblog posts to make the visitors more entertained? I mean I just read through the entire post and it has been really great but since I'm more of a visual learner, some more vids and charts would help a lot. Nevertheless, the topic here is really worth pondering about. Thanks again.

#58 - nursing scrubs on July 10, 2010 09:30

Cool software this is with lot of features given here . The good thing is that the method is also given here to understand it.

#59 - Online Pharmacy — Cheap Generic Drugs on July 10, 2010 17:34

Online Pharmacy — Cheap Generic Drugs

#60 - Xbox Live Subscription on July 11st, 2010 08:41

The most important for me is ?umbDebugShowTrace=true it shows you the build in stack trace from the .NET framework.

#61 - lift top coffee table on July 14, 2010 13:51

Your topic chosen really stickes as it is so actual that people cannot help discussing it every day. Hopefully, we all can get some changes made to that concerning issues.

#62 - canada pharmacy on July 14, 2010 19:12

Great info.I like all your post.I will keep visiting this blog very often.It is good to see you verbalise from the heart and your clarity on this important subject can be easily observed.

#63 - payroll software on July 15, 2010 09:45

I read some features of the site it is the nice software . The good thing is that the method of using is also available here.

#64 - Microsoft Office 2007 on July 16, 2010 03:10

<a href="http://www.gogo-fly.com/">office 2007 professional</a>
[url=http://www.softwares-supplier.com/]MS Office 2007 Professional[/url]
MS Office 2007 Professional

#65 - logo designs on July 20, 2010 09:03

Very useful, Best idea :)

#66 - Ferrari replica watches on July 20, 2010 10:28

nice article. keep post like this...

#67 - Ferrari replica watches on July 20, 2010 10:28

nice article. keep post like this...

#68 - Ferrari replica watches on July 20, 2010 10:29

nice article. keep post like this...

#69 - ipad converter on July 24, 2010 07:51

keep em coming the good content :)

#70 - check domain names on July 24, 2010 08:30

Your topic chosen really stickes as it is so actual that people cannot help discussing it every day. Hopefully, we all can get some changes made to that concerning issues.

#71 - life insurance quotes term on July 24, 2010 08:42

it is so actual that people cannot help discussing it every day. Hopefully, we all can get some changes made to that concerning issues.

#72 - Make money on July 24, 2010 18:30

Your page is truly inspirational. I too am a mom with a binder and a heart full of love. I recommit to following this system for an entire week. Hopefully I'll get back to you with some positive results. Thank you so much for the inspiration.

#73 - free online dating on July 25, 2010 08:32

I too am a mom with a binder and a heart full of love. I recommit to following this system for an entire week. Hopefully I'll get back to you with some positive results. Thank you so much for the inspiration.Your page is truly inspirational.Thanks

#74 - coach outlet on July 25, 2010 11:22

to debug your macros, either xslt or usercontrols you do this by appending

#75 - coach handbags on July 25, 2010 11:23

The most important for me is ?

#76 - chanel handbags on July 25, 2010 11:24

The other one is ?umbDebug=true which will show you

#77 - shox shoes on July 25, 2010 11:24

shows you the build in stack trace from the

#78 - cheap coach handbags on July 25, 2010 11:25

your macro shows/throws an error

#79 - cheap chanel handbags on July 25, 2010 11:25

either xslt or usercontrols you do this by appending

#80 - garden treasures gazebo on July 25, 2010 13:58

Your topic chosen really stickes as it is so actual that people cannot help discussing it every day. Hopefully, we all can get some changes made to that concerning issues.

#81 - Wyler replica watches on July 26, 2010 11:21

nice article. keep post like this...

#82 - shoe storage on July 27, 2010 18:49

Your page is truly inspirational. I too am a mom with a binder and a heart full of love. I recommit to following this system for an entire week. Hopefully I'll get back to you with some positive results. Thank you so much for the inspiration.

#83 - In Home Care on July 28, 2010 11:22

I too am a mom with a binder and a heart full of love. I recommit to following this system for an entire week. Hopefully I'll get back to you with some positive results. Thank you so much for the inspiration.Your page is truly inspirational.Thanks

#84 - outdoor dining furniture on July 28, 2010 20:14

Great info.I like all your post.I will keep visiting this blog very often.It is good to see you verbalise from the heart and your clarity on this important subject can be easily observed.

#85 - Speedos on July 29, 2010 08:27

Your topic chosen really stickes as it is so actual that people cannot help discussing it every day. Hopefully, we all can get some changes made to that concerning issues.

#86 - stressballs on July 29, 2010 17:11

What are the functions or uses of using Umbraco Debug,Umbraco Macro Info,Umbraco Remove Debug?

#87 - phineas and ferb games on July 30, 2010 05:28


Very good information, thank you very much by the article and the quality of your Web site.

#88 - Used Cars for Sale on July 30, 2010 05:30

This is an excellent topic you are discussing about and i really appreciate it. It should be going on.

#89 - Software Reviews on July 30, 2010 05:31

I learn something new everyday or get to read about other people's experience which is why I love reading software blogs.

 

Create a new comment

Recent Post

Tags