为什么我的lightswitch应用程序不会加载符号? [英] Why wont my lightswitch application load symbols?

查看:104
本文介绍了为什么我的lightswitch应用程序不会加载符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用一个lightswitch应用程序,似乎无法让它加载符号。我清理了我的解决方案。重启视觉工作室。执行重建一切。我只是无法获得加载符号的解决方案。最糟糕的是
,我甚至不知道它试图加载什么符号。我理解一个asp.net应用程序以及在寻找符号方面该做些什么,但这对我来说是全新的,并且很大程度上没有记录。任何人都可以指向我可以用来
的程序尝试加载我的符号以便我可以开始调试这个应用程序吗?

解决方案

你好彼得,


我不确定我明白你的意思,所以让我试着总结一下我对它的理解。  我假设你在谈论HTML客户端。  当您点击F5时,应用程序会加载,但您在Visual Studio中设置的断点(例如,在自定义控件的_render方法中停止
)不会受到影响。  这大致是你要问的吗?


如果是这样,请参阅Joe Binder的博客文章



4.按"开始调试"



5.所有用户代码都复制到"usercode.js";在下拉列表中选择该文件





6.设置你的断点;必要时重新加载页面





我们目前正在努力启用Visual Studio调试,但这个有点繁琐的过程将允许您在此期间调试代码。



I'm working with a lightswitch application and and cannot seem to get it to load the symbols. I have cleaned my solution. restarted visual studio. Performed a rebuild everything. And I just cannot get my solution to load the symbols. The worst thing is that I don't even know what symbols it is trying to load. I understand an asp.net application and what to do in terms of looking for symbols but this is completely new to me and largely undocumented. Could anybody point me towards a procedure I can use to try and get my symbols loaded so I can start debugging this application?

解决方案

Hi Peter,

I'm not sure I understood what you mean, so let me try to summarize my understanding of it.  I assume you're talking about the HTML client.  When you hit F5, the application loads, but the breakpoints you set in Visual Studio (say, for stopping inside a _render method of a custom control) don't get hit.  Is this roughly what you're asking?

If so, see Joe Binder's blog post at http://blogs.msdn.com/b/lightswitch/archive/2012/07/02/writing-javascript-code-in-lightswitch-joe-binder.aspx, in the section titled "Debugging".  Essentially, in this early preview, you have to debug via the browser (F12) rather than through Visual Studio.  The relevant section of Joe's article is below.

- Michael

Debugging

Early in the planning process for the HTML Client, the team agreed that—given the emergent nature of standards-based, mobile web development—it was important to make a preview build of the HTML client available as soon as possible: we wanted to start gathering feedback while we had sufficient time to respond to it. Releasing an early preview meant that a number of features and experiences are incomplete or altogether absent. The interim feature gaps are particularly noticeable in the coding and debugging space—basic things like IntelliSense, debugging, and APIs aren’t quite there yet.

If you’re trying out the preview and start writing code, you’ll want to use IE to debug your code--breakpoints set inside Visual Studio will never be hit if you F5 the application. If you would like to debug code, use Ctrl+F5 to launch IE then press F12. This is the process I typically use to debug my code:

1. Ctrl+F5 inside Visual Studio to launch the application

2. Press F12 to launch the debug window in IE

3. Switch to the script tab

4. Press "Start debugging"

5. All of your user code is copied into "usercode.js"; select that file in the dropdown

6. Set your breakpoint(s); reload the page if necessary

We’re working to enable Visual Studio debugging presently, but this somewhat cumbersome process will allow you to debug your code in the meantime.


这篇关于为什么我的lightswitch应用程序不会加载符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆