Eclipse perde o caminho do fonte na hora de debugar
10 respostas
S
saviobarr
Olá amigos,
Estou tentando debugar um projeto web no Eclipse 3.2 (europa), que roda sob o JBoss. Estou com um problema de que sempre que ele cai nuim break point, e dou um “yes” quando ele pergunta se quero mudar de perspectiva, recebo um erro: Source not found que fica numa tela em branco… aparece também um botão Edit Source Lookup Path (no canto superior direito da tela em branco). Já tentei algo nesse botão, mas sem sucesso.
Alguém pode ajudar?
e se vc não mudar de perspectiva, dá o mesmo erro??
S
saviobarr
Estava usando a persp Seam. Mudei pra Java e dá no mesmo…
A
Andre_Fonseca
oi
Source file not found
When source cannot be found, the editor opens without source. In the editor, you are provided with the following options:
* You can edit the source lookup path so that it points to the location of the source file. To edit the source lookup path, select the Add Source Location push button. This will invoke the Edit Source Lookup Path dialog box. Instructions for using this dialog are provided above.
* You can specify a different editor source file name. To do this, choose the Change Text File push button to enter or browse for the path and name of the file that you would like to open.
Note: If the editor source file is located on a remote system, use this option.
* You can select the Show Disassembly push button to have the editor display a disassembly object file for your program. </blockquote>
é para o Rational, mas dê uma olhada, talvez funcione também para você…
When source cannot be found, the editor opens without source. In the editor, you are provided with the following options:
* You can edit the source lookup path so that it points to the location of the source file. To edit the source lookup path, select the Add Source Location push button. This will invoke the Edit Source Lookup Path dialog box. Instructions for using this dialog are provided above.
* You can specify a different editor source file name. To do this, choose the Change Text File push button to enter or browse for the path and name of the file that you would like to open.
Note: If the editor source file is located on a remote system, use this option.
* You can select the Show Disassembly push button to have the editor display a disassembly object file for your program. </blockquote>
é para o Rational, mas dê uma olhada, talvez funcione também para você…
Então, eu já tinha fuçado nisso… coloquei o Ganymede e rodou bonitinho Acho que é algum pau do europa
R
rmendes08
Não tem nada com a ver com bug. É problema de configuração mesmo. Você passou perto de resolver. Quando ele te dá a opção “Edit source lookup path” é só você adicionar o projeto que tem os fontes que você quer debugar que funciona direitinho.
S
saviobarr
Olá,
Conforme consta no histórico, eu já havia feito isso, e não funcionou. Pesquisei além do GUJ e vi relatos de pessoas que tiveram o mesmo problema, e também não conseguiram resolver. Depois que pus o Ganymede, deu o mesmo erro, mas setando o source lookup funcionou. Logo considerando o outros casos iguais ao meu, considerando que setar o source lookup no Ganymede funcionou, chego à conclusão de que é algum problema no 3.2.
Ah, não cheguei perto de resolver. Para o meu problema (projeto real com prazos ambiciosos), resolveu…
Boa sorte à todos.
Sávio
SCJP
SCWCD
SCBCD
SCEA (Soh a primeira prova :p)
A
aag
oi eu arrumei o meu problema ajustando o .classpath, pois aqui trabalhamos com o git e eu tinha alterado o classpath aí dava pau na hora do debbug [o projeto na verdade não precisa ser web]
S
saviobarr
Então, tem pouco mais de dois anos que resolvi isso. Agradeço a todos que postaram respostas.