简体   繁体   English

断点不会破坏Appcelerator应用

[英]Breakpoints do not break Appcelerator app

In Appcelerator Studio I set some breakpoint in the code, but whatever I try, Appcelerator just runs the app in de emulator, without stopping. 在Appcelerator Studio中,我在代码中设置了一些断点,但是无论我如何尝试,Appcelerator都只会在de emulator中运行应用程序,而不会停止。

I made a debug-configuration to run with and switched to the Debug view. 我进行了调试配置以运行,并切换到“调试”视图。

In Preferences I set Studio > Troubleshooting > Debug Level to 'All'. 在偏好设置中,我将Studio>故障排除>调试级别设置为“全部”。

In the Breakpoints-tab all breakpoints are listed and checked. 在“断点”选项卡中,列出并检查了所有断点。

Am I missing something? 我想念什么吗?

Nothing to do with Studio > Troubleshooting > Debug Level to 'All'. 与Studio>故障排除>调试级别设置为“全部”无关。 You can reset this to 'Error'. 您可以将其重置为“错误”。 This is useful to see studio debug level logs. 这对于查看Studio调试级别日志很有用。

Do you see any debug related errors in the "Help -> Studio -> View Log". 在“帮助-> Studio->查看日志”中是否看到任何与调试相关的错误。 Can you share the log file. 您可以共享日志文件吗?

If it's an Alloy project, do the clean the build using "Project ->Clean" 如果是Alloy项目,请使用“ Project-> Clean”进行清理构建

What's your environment like platform, studio version, CLI Core version and SDK version? 您的环境是什么,例如平台,工作室版本,CLI Core版本和SDK版本?

Based on your Tag I'm assuming you're using Alloy. 根据您的标签,我假设您正在使用Alloy。

In which case, these files are converted to classic files and the compiled result is positioned in the Resources Directory in the root of your project. 在这种情况下,这些文件将转换为经典文件,并且编译后的结果将位于项目根目录下的Resources Directory中。

In there you'll find all your code, but slightly different as it is processed. 在这里,您会找到所有代码,但是在处理过程中会稍有不同。 If you set breakpoints there, and run debug mode it will work! 如果您在那里设置断点,然后运行调试模式,它将起作用!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM