如何确定我的应用程序是在调试模式还是在发布模式下运行? [英] How can I find out if my app runs in debug or in release mode?

查看:101
本文介绍了如何确定我的应用程序是在调试模式还是在发布模式下运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图检查"如果调试"但它是Release和Debug模式下的一个对象。那么如何检查应用程序是否在调试解决方案配置中运行?

解决方案

我不相信javascript会在Debug模式下编译任何不同的内容。  无论编译标志如何,Debug对象都只允许你进行调试和存在。


你想要完成什么以及为什么这对你的代码来说是必要的?


I tried to check "if Debug" but its an object in both Release and Debug mode. So how can I check if the app is running in the debug solution configuration?

解决方案

I don't believe javascript compiles any different in the Debug mode.  The Debug object simply lets you do Debugging things and exists regardless of the compile flag.

What are you trying to accomplish and why is this necessary for your code?


这篇关于如何确定我的应用程序是在调试模式还是在发布模式下运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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