473,320 Members | 1,600 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

C# and JavaScript Debug Step Through

I am using JavaScript with my C# web application, so I'm not sure I should
be posting a JavaScript question here, but here it goes anyways.

Currently, I can step through my C# code in the Code Behind files, but can I
step through the Javascript code as well? If not, how could I achieve such a
thing, if at all possible?

Aug 29 '08 #1
1 1704
"Greg Setnes" <gj******@msn.comwrote in message
news:21**********************************@microsof t.com...
I am using JavaScript with my C# web application, so I'm not sure I should
be posting a JavaScript question here, but here it goes anyways.

Currently, I can step through my C# code in the Code Behind files, but can
I
step through the Javascript code as well? If not, how could I achieve such
a
thing, if at all possible?
Sure. If you are using the development server then you will find VS will
have attached to the IE process it launches when you run the app for Script
debugging. The best approach I've found is to place Javascript debugger
keyword at the point in code you would like to start debugging. Breaks
points do work but they can be a bit flaky especially in inpage javascript.
The are best set once you've actually started debugging.

If you're not on VS2008 I would recommend you customise your menu and
include the script explorer somewhere (for some reason its not available
anywhere byt default). VS2008 displays the 'running scripts' (as it used to
be called in the olden times) as part of the solution explorer.

--
Anthony Jones - MVP ASP/ASP.NET
Aug 29 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Beth via .NET 247 | last post by:
I have written a service in VB.Net. I have installed the service using InstallUtil. I was able to start the service, but once I attach to and try to debug the service it will not step into my...
25
by: Jeff | last post by:
Use the MS Script Editor included free with MS Office 2002 and above, for debugging Internet Explorer (IE). This subject is of great interest to many JS developers, as there is no obvious, low...
3
by: Tom | last post by:
Does anyone know of a way to debug JavaScript for C# .NET applications? Is there a tool or add-on that will allow me to step through Javascript line by line in debug mode? Thanks Tom
6
by: Alpha | last post by:
Hi, I'm fixing a bug in an application and need to step thru the appl to find where it's occuring. The main project includs 33 other projects each having a .resx file in it. When I step through it...
1
by: RG | last post by:
I am looking to debug javascript code imbeded in aspx page. I would like to attach an ie process and step through js code. The attaching part I am able to do. How do you break and step through...
22
by: semedao | last post by:
Hi , I am using asyc sockets p2p connection between 2 clients. when I debug step by step the both sides , i'ts work ok. when I run it , in somepoint (same location in the code) when I want to...
2
by: =?Utf-8?B?Sm9obiBT?= | last post by:
Hi, I'm trying to follow Lab1 of the WF Hands On Labs. Having created the project and set a breakpoint as per instructions, I press F5 to compile and run the project. The instructions say...
19
by: desktop | last post by:
When I write code I use a lot of: std::cout << "TEST1\n"; .... .... <some code> .... ....
3
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi, This is an issue that happens to me and everybody else I know and I've never found a way around it. In Visual Studio (currently using 2003 but the same has happened for me in 2005 and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.