2 Replies - 311 Views - Last Post: 31 October 2017 - 01:47 PM Rate Topic: -----

#1 AmirulVB  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 23-October 17

Learning VB.net

Posted 31 October 2017 - 12:57 AM

Hi Sir,

I'm new in Vb.net.Can Somebody explain in a easy way for understanding difference between Debug and Release Mode in Visual Basic .Net

I was having a hard time thinking why my code in debug can work properly but in release mode it's not working but not display any error.Only it return Nullexception for the code.I solve it already but right now been thinking why it happen and why it really work in debug but not in release?

I google and understand a little bit about this but not in a deep way.(also look at msdn but my english is not good btw i'm from asia region)

Please sir :D/>!

This wasnt my code i mean i need to modify a certain code in there as i involve in Vision Cognex Machine Programmer.
We build the software for this machine.so i did not understanding a bit much code on that software as because dont have any senior here in our company.

link to see if you want (maybe somebody work in this scope,appreciate if you can provide me some advice):
www.cognex.com

Thanks Sir!!

Is This A Good Question/Topic? 0
  • +

Replies To: Learning VB.net

#2 andrewsw  Icon User is online

  • the case is sol-ved
  • member icon

Reputation: 6377
  • View blog
  • Posts: 25,768
  • Joined: 12-December 12

Re: Learning VB.net

Posted 31 October 2017 - 02:14 AM

Question moved to VB.NET forum. ('Introduce Yourself' is not for questions.)
Was This Post Helpful? 0
  • +
  • -

#3 IronRazer  Icon User is offline

  • Custom Control Freak
  • member icon

Reputation: 1444
  • View blog
  • Posts: 3,678
  • Joined: 01-February 13

Re: Learning VB.net

Posted 31 October 2017 - 01:47 PM

From my basic understanding, there are two main differences between the Debug and Release modes. They are just two different preset configurations for Building/Compiling the project's code. You can create your own configurations too.

When using the Debug configuration and you Build your project, the compiled code is not optimized, leaving you with a larger, slower, and not quite as efficient exe file. Being in Debug mode will also includes the (.pdb) file in in your debug folder which is used for debugging your code.

When using the Release configuration and you build your project, the compiled code is optimized, leaving you with a smaller, faster, more efficient exe file. Being in Release mode does not create and include the (.pdb) file.

Basically, if you are still designing and debugging your application, you will keep it in Debug mode with the Code Optimization setting turned off. When you are done designing it or want to ship out your latest stable version, you would build your application in the Release mode which uses optimization.

This link explains it in as basic of a way as can be done.
How to: Set debug and release configurations in Visual Studio
This link explains a little more about Optimization of your code.
Optimizing Your Project Code
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1