both of this codes are for vb.net and working you can use this for debug path
TextBox2.Text = IO.Path Both of the examples are in VB.GetFullPath(ApplicationNET.ExecutablePath)
and use this one to get exact exe fileDebug path:
TextBox1.Text = My.Application.Info.DirectoryPath
TextBox1.Text = My.Application.Info.DirectoryPathEXE path:
TextBox2.Text = IO.Path.GetFullPath(Application.ExecutablePath)