1

Closed

Cannot debug TypeScript file with version 0.9.0 and VS.NET 2012

description

I'm using VS.NET 2012 and TypeScript 0.8.3.1. Everything is fine until I install version 0.9.0. With new version, VS.NET notify that there is no loaded symbol and I cannot debug the source code anymore.

If I uninstall 0.9.0 and re-install 0.8.3.1, I can debug again.

Is it an issue of new version or do I miss something?

Updated on 2013/08/10

Tried with 0.9.1 but it still occurs.

file attachments

Closed Aug 12, 2013 at 11:09 PM by RyanCavanaugh
It sounds like you have a repro project -- can you please upload it and re-open this issue (use the link at the top of this form)? It's very difficult to determine how your project is set up from the description you have. Thanks!

comments

weigel wrote Jun 23, 2013 at 7:04 PM

Same problem here. Since version 0.9.0 debugging with VS2012 is not possible anymore. Using 0.8.3.1 everything is fine. With 0.9.0 the break points in the ts file are ignored by VS2012 and the dynamically created ts files cannot by opened. So, no way to debug ts files using VS2012 ind IE10 with version 0.9.0

paulb wrote Jun 24, 2013 at 5:50 PM

I'm not able to reproduce this, can you attach a small repro-project.

Do you have Web Essentials installed? Can you try with that un-installed?

** Closed by paulb 06/24/2013 10:50AM

JonKragh wrote Jun 27, 2013 at 1:59 PM

Same issue over here.

JonKragh wrote Jun 28, 2013 at 2:16 AM

For me the issue appears when using SSL.

With SSL = no debugging.
Without SSL = All ok.

Do you guys have SSL enabled?

WhiteRose wrote Aug 10, 2013 at 2:03 PM

Hi paulb,

I have tried to uninstall all extensions and install newest version (0.9.1) but there is no luck. I'm using ASP.NET Development Server for debugging; so there is no SSL as JonKragh mentioned too.

I can see similar issue as my problem here (please check the last post of Geminiman):

https://typescript.codeplex.com/discussions/449596

In my project, I still can see the .ts file attached to .js file but I'm no longer to open that .ts file again. If I set a break-point in .js file, when the execution reach that point, VS.NET notify that "Source Not Available".

WhiteRose wrote Aug 10, 2013 at 2:48 PM

Hi paulb,

I tried to create a small-repo project and I just found that my problem may relate to the way I refer the final .js file.

Currently, I add a new virtual directory for the folder which contains .js files. In web page, the code to refer that .js files look like:

<script type="text/javascript" src="http://localhost/demo/demo.js"></script>

and since i'm using ASP.NET Development Server, my page a in different application:

http://localhost:50847/WebForm1.aspx

Does the issue relate to remote debugging like that?

lstrange123 wrote Aug 13, 2013 at 3:02 PM

When I add a .ts file the dependencies for the .map and .js file are no longer being picked up.

I had to manually add an ItemGroup node to the project file and then add the dependencies order for the maps to be picked up by the debugger.

It will fix the problem but it's a real pain.

grante wrote Oct 6, 2013 at 11:16 AM

My problem is related to Azure. When I set the Cloud Service as the startup project, the debugger fails to find the map files in the WebRole. If I launch the WebRole directly as the startup project, the debugger successfully loads the map files.

mweilb wrote Nov 28, 2013 at 7:58 PM

My project works now that I have change by web role's project URL to match my Azure URL.

I changed the Web | Servers | Project URL to http://127.0.0.1:81 on the web role property sheet.