473,385 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to attach to a process from a workspace and not lost the works

After I open a workspace I have access to all C++ files of the workspace.

I can put breakpoints. Everything look great...
So I go attach to my process and Visual C++ go close my workspace!

I don't see the goal of closing the workspace...

How can I fix this strange behavior/bug?
Nov 17 '05 #1
3 1476
After I open a workspace I have access to all C++ files of the workspace.

I can put breakpoints. Everything look great...
So I go attach to my process and Visual C++ go close my workspace!

I don't see the goal of closing the workspace...

How can I fix this strange behavior/bug?


Set the following settings in Project properties | Configuration Properties | Debugging:

Attach = "Yes"
Command = "Your executable" (optional, for .EXE projects the default is OK)

With these settings, pressing F5 will attach to the specified executable (if it is running)
instead of launching it, and keep the workspace open.

Regards,
Oleg


Nov 17 '05 #2
I can make it work in Visual Studio 2003 but not with Visual C++ 6.xx. Any
fix on this one?

"Oleg Starodumov" wrote:
After I open a workspace I have access to all C++ files of the workspace.

I can put breakpoints. Everything look great...
So I go attach to my process and Visual C++ go close my workspace!

I don't see the goal of closing the workspace...

How can I fix this strange behavior/bug?


Set the following settings in Project properties | Configuration Properties | Debugging:

Attach = "Yes"
Command = "Your executable" (optional, for .EXE projects the default is OK)

With these settings, pressing F5 will attach to the specified executable (if it is running)
instead of launching it, and keep the workspace open.

Regards,
Oleg


Nov 17 '05 #3
I can make it work in Visual Studio 2003 but not with Visual C++ 6.xx. Any
fix on this one?


After you have attached for the first time (and lost your workspace),
open the needed source files, set breakpoints, etc., and save the workspace
(File | Save Workspace). This will create an .OPT file associated with
the given executable.

Next time you want to debug the executable, open the .EXE file in
File | Open Workspace dialog. This will load the .OPT file created
in the previous step, and that workspace will not be closed when
you attach to the running executable.

Oleg

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: deko | last post by:
I need to create and reference a Workspace (kinda new at this...) Here's how it works with the current db: Dim wrk As DAO.Workspace Set wrk = DBEngine.Workspaces(0) wrk.BeginTrans This...
0
by: Ryan | last post by:
Hello, HELP! I have TWO questions: First, I am trying to execute a SQL pass-through query in Access VBA. According to MSAccess help, I should be able to use the following syntax after...
1
by: vijaygparikh | last post by:
HI i am writting a code for open default mail client and it works fine. i want to attach a file with the default mail client but file is not attached with "mailto:" option. If any one has idea...
7
by: Devron Blatchford | last post by:
Hi there, I am trying to develop a small menu application to run on an RF network, we are using a wavelink server to communicate with our rf scanners and run VB.NET applications on our server...
7
by: Greg P | last post by:
I know this is a long post, please bear with me. I have been working on this all weekend to no avail although I have done a good amount of research (see most pertinent links that I've looked at...
9
by: ME | last post by:
I have a application that someone else has wrote that runs in a console window. It does not take parameters, but when running it asks three questions and then exits. I would like to write a small...
1
by: Martin Simard | last post by:
Hi all, In VS 2003, when I attach to a remote process for debugging, I can see the list of modules loaded by the process before attaching to it. This list is not there anymore in VS 2005....
1
by: SenthilVel | last post by:
Hi I have a question when debugging dotnet code when attaching vb6.exe code to this process. i get an error like : unable to attach the process. there is no managed code running in the...
6
by: GaryDean | last post by:
I see some references on debugging by attaching to a process. There are MSDN articles that show how to attach to a process for debugging. However, I can find no info on how exactly to get the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.