Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 17th, 2012, 05:48 AM
Authorized User
 
Join Date: Aug 2011
Posts: 44
Thanks: 14
Thanked 0 Times in 0 Posts
Default Chapter 17: debugging Javascript

In the Try It Out of page 619, you show how to debug a Javascript for a web service.
I tried to apply the same techniques to debug the Javascript inside the web user control ContactForm.ascx, but I failed as I cannot set the breakpoints.

Is it not possible to debug a Javascript inside a web user control ?

Thank you
Antonius
 
Old August 17th, 2012, 01:40 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

As far as I know, you should be able to debug script in user controls. However, it seems there are some issues with complex setups involving multiple files that cause incorrect behavior and breakpoints not being hit.

For cases where it doesn't work as expected you could use the debugger keyword in your code. Just put it on a line before the code you want to debug and it should bring up the debugger.

Alternatively, you could use Firebug in Firefox or other debugging tools in other browsers to debug at the client. I like and use Firebug a lot myself and it works really well.

Cheers,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
Antonius Block (August 17th, 2012)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Page 17 - Debugging the First C# Express Project kennethjaysone Book: Wrox's Visual C# 2005 Express Edition Starter Kit 3 September 8th, 2010 04:31 AM
Chapter 17 Page 608 Try It out - Debugging your application ceboc BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 November 24th, 2009 12:46 PM
Chapter 17 HenzFast BOOK: Beginning Microsoft Visual Basic 2008 ISBN: 978-0-470-19134-7 2 April 14th, 2009 03:28 AM
Chapter 17 first Try It Out paloyme Visual Basic 2005 Basics 0 April 17th, 2006 04:34 AM
debugging asp/javascript katie456 Classic ASP Databases 1 October 22nd, 2003 04:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.