简体   繁体   English

我应该使用调试构建可执行文件还是发布构建可执行文件来安装Windows服务?

[英]Should I use debug build executable or release build executable to install a windows service?

I do not know which exe to use when install a windows service? 我不知道在安装Windows服务时要使用哪个exe? in bin or obj? 在bin或obj中?

Because the choice here is later related to service debugging. 因为此处的选择稍后与服务调试有关。 I find out that there is some differences bewteen debugging a debug build exe and release build exe. 我发现在调试调试版本exe和发布版本exe之间存在一些差异。 It seems to me that debugging a debug build exe is simpler. 在我看来,调试调试版本exe更为简单。 But my instint tells me that I should install a release build exe service. 但是我的直觉告诉我,我应该安装发布版本exe服务。

Thanks a lot in advance! 在此先多谢!

Is that usual for people to automatically downvote every little question that seems a bit "out of the bounds" ? 人们通常会自动否决每个似乎有点“超出范围”的小问题吗? Without any answer/comment or anything else besides ? 没有任何答案/评论或其他?

People register on a forum designed to help people and share experiences and they just make them feel like their question is too absurd or stupid to be answered by someone of their level. 人们在旨在帮助人们和分享经验的论坛上注册,只会使他们感到自己的问题太荒谬或愚蠢,无法被同级别的人回答。

You are a wall to curiosity and improvement and i sincerely hope, from the bottom of my heart, that you'll all die in a festival of atrocities ! 您是好奇心和进步的一堵墙,我衷心希望,我会从心底里死在暴行的节日中! best regards =) <\\aside> 最好的问候=)<\\ aside>

That being said, here is my answer : 话虽如此,这是我的答案:

The best thing you can do is to follow this guide : Attach a Debugger to a Service 您可以做的最好的事情就是按照本指南进行操作: 将调试器附加到服务

HOWEVER , if you are in a configuration that doesn't allow you to do this or if you prefer going into logs, follow your instinct : Use release one. 但是 ,如果您的配置不允许您执行此操作,或者您更喜欢进入日志,请遵循本能:使用版本1。

First, some errors won't appear in Debug but they could in release. 首先,某些错误不会在“调试”中出现,但可能会在发布中出现。

Second , and the most important one, the release will be potentially distributed to customers . 其次 ,也是最重要的一个,该发行版可能会分发给客户

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

相关问题 #if DEBUG无法在Windows Service版本中运行 - #if DEBUG not working on a Windows Service release build 使外部运行的调试生成可执行文件异常在VS中打开? - Make externally-run debug build executable exception open in VS? Windows服务可执行文件的路径 - Path to the executable of a windows service 运行Service Fabric App的AppManifestCleanupUtil可执行文件时构建失败 - Build fails while running AppManifestCleanupUtil executable for Service Fabric App 如何一次构建调试和发布? - How can I build Debug and Release at once? 使用 installutil 从具有多个服务的可执行文件安装单个服务 - Use installutil to install a single service from an executable that has multiple services 如何在NAnt Build期间删除正在使用的网络可执行文件 - How to delete network executable files in use during NAnt Build 如何通过“可执行文件路径”而不是“服务名称”删除 windows 服务? - How can i delete a windows service by the “Path to executable” not the “Service Name”? 修改Windows服务可执行文件的路径 - Modifying path to executable of windows service 如何将内部版本号与可执行文件上的版本号同步? - How can I sync the build version number with the version number on the executable?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM