KDevelop4/FAQ/da: Difference between revisions
(Importing a new version from external source) |
(Importing a new version from external source) |
||
Line 13: | Line 13: | ||
Gå til <menuchoice>Projekt -> Ny fra skabelon...</menuchoice>. Vælg <menuchoice>C++ -> No GUI (Cmake) -> Simpel CMake-baseret C++-applikation</menuchoice> og skriv navnet forneden i vinduet; klik så <menuchoice>Næste</menuchoice>. | Gå til <menuchoice>Projekt -> Ny fra skabelon...</menuchoice>. Vælg <menuchoice>C++ -> No GUI (Cmake) -> Simpel CMake-baseret C++-applikation</menuchoice> og skriv navnet forneden i vinduet; klik så <menuchoice>Næste</menuchoice>. | ||
Nu dukker <menuchoice>Versionsstyring</menuchoice> op. Vælg <menuchoice>Ingen</menuchoice> og klik <menuchoice>Afslut</menuchoice>. | |||
Then it asks you to configure build. Click <menuchoice>Ok</menuchoice>. Now you should have new project visible on <menuchoice>Projects</menuchoice> list. You can build it by pressing <keycap>F8</keycap> or selecting <menuchoice>Project -> Build Selection</menuchoice>. | Then it asks you to configure build. Click <menuchoice>Ok</menuchoice>. Now you should have new project visible on <menuchoice>Projects</menuchoice> list. You can build it by pressing <keycap>F8</keycap> or selecting <menuchoice>Project -> Build Selection</menuchoice>. |
Revision as of 09:14, 10 April 2011
KDevelop4 FAQ'er
Skærmbilleder
Disse skærmbilleder viser dig, hvordan du kommer i gang med det nyt projekt, hvordan du bygger og kører det samt debugger det.
Hvordan laver jeg et nyt konsolprogram?
Gå til
. Vælg og skriv navnet forneden i vinduet; klik så .Nu dukker
op. Vælg og klik .Then it asks you to configure build. Click F8 or selecting .
. Now you should have new project visible on list. You can build it by pressingTo debug an application you must add launch configuration. This is done from
.Add new launch by pressing F2. Apply changes pressing . Then you can add breakpoint to source code with . Debugging starts with . On bottom of the screen you can select tab, and you can use enter commands gdb console.
. You need to edit the field to point a executable binary. It is same as your project name usually. Or you can just select executable to point the binary. You can also edit the launch name to be more informative than by selecting it on left list and pressingHow do I import an existing project?
Go to
and select the folder of your project. Alternatively select your main makefile or CMakeLists.txt. Follow the wizard.How do I setup KDevelop to run my application?
Go to
, select your project to the left, press the plus-button. Make sure the type of the (give it a proper name!) is . Now go to the field to the left and type in the path to your target. Start with your projects name, it has auto completion.
How do I debug my application in KDevelop?
If you setup a launch configuration (see above) you should be able to run that in debug mode as well.
How do I get pretty printed variable contents while debugging?
Make sure your ~/.gdbinit looks similar to this:
python import sys sys.path.insert(0, '/home/milian/projects/compiled/kde4/share/apps/kdevgdb/printers') from qt4 import register_qt4_printers register_qt4_printers (None) from kde4 import register_kde4_printers register_kde4_printers (None) from libstdcxx import register_libstdcxx_printers register_libstdcxx_printers (None) end
Of course you have to adapt the path to point to the pretty printers.
What kind of build environments does KDevelop 4 support?
cmake, any other make-file based project via
, generic...How do I use Subversion from within KDevelop 4?
For subversion support you need to have it enabled on compile time. If that is the case, then you can right click your project files and find
item from the pop-up menu. There you can find common tasks, like and .Where is search/replace in files ?
Starting with version 4.2, KDevelop ships by default with a search/replace in files plugin. Access it via the menu or from the context menu, e.g. in project view or on a selection in the editor.
What are workingsets and how do I use them?
Todo