Well, my operating process is:
input pyclewn in the terminal, then I use :e code.c to test:
//code.c
1. #include <stdio.h>
2.
3.
4. int main(int argc, char *argv[])
5. {
6. int n;
7. scanf("%d", &n);
8. if(n < 1)
9. {
10. printf("Invalid parameter");
11. return -1;
12. }
13.
14. printf("n=%d", n);
15.
16. return 0;
17. }
then :Cfile codeapp to load it. And :Cmapkeys to open mapping keys.
:Cbreak 6 to set a breakpoint.
I use Shift+r to run it, then Ctrl+n to line 6, but I can't input a number
for n .
Anyhow, if continue to press Ctrl+n, program will run to line 7 until line
11,
this not what i want. So I confused. Thanks for your advance.
The gdb window show:
Starting program: /home/free/code
Breakpoint 1, main (argc=1, argv=0x7fffffffdf48) at code.c:6
(gdb) next
(gdb) next
(gdb)
On Sat, Jun 15, 2013 at 9:37 PM, Xavier de Gaye <[email protected]> wrote:
> On Sat, Jun 15, 2013 at 12:08 PM, Freewanting wrote:
> > the content of /home/free/bin/pyclewn is:
> > #!/usr/bin/python
> > import clewn.vim as vim
> > vim.main()
>
>
> The pyclewn script has not been installed with the command:
>
> vimdir=$HOME/.vim python setup.py install --force --home=$HOME
>
>
> > however, I found a method is set PYTHONPATH:
> >
> > export PYTHONPATH=$HOME/lib/python:$PYTHONPATH
> >
> > and pyclewn can work now normally anyhow. but I don't know why.
>
>
> This is because the installation process installs the clewn package at
> $HOME/lib/python when you install using the 'home scheme'.
>
>
> > But I come across a new problem is when I use :Cfile appname to load it
> .
> > ex. this app include "scanf" system call, but when I debugging it, I
> can't
> > input
> > any parameter in processing. Anyway, it don't popping a window that let
> me
> > input sth.
> >
> > Any problem when I installed? Thank you for you help for advance.
>
>
> Please send the list of the commands and their output.
>
>
> --
> Xavier
>
> Les Chemins de Lokoti: http://lokoti.alwaysdata.net
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Pyclewn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyclewn-general